<template>
  <div class="box">
      <header class="header">分类</header>
      <div class="content">
        <ul>
          <li v-for="item of bannerList" :key="item.bannerid">
            <img :src="item.img" alt="">
          </li>
        </ul>
        <ul>
          <li v-for="item of proList" :key="item.proid">
            {{ item.proname }}
          </li>
        </ul>
      </div>
    </div>
</template>
<script>
// import { mapState } from 'vuex'
import myMixins from './../mixins/test'
export default {
  mounted () {
    console.log(this)
    this.$store.dispatch({
      type: 'home/getBannerListAction'
    })
    this.$store.dispatch('home/getProListAction')
  },
  mixins: [myMixins]
  // computed: {
  //   ...mapState({
  //     bannerList: state => state.home.bannerList,
  //     proList: state => state.home.proList
  //   })
  // }
}
</script>
